#ifndef HAND_INFO_H
#define HAND_INFO_H

#include "stdafx.h"
#include "Hand.h"
#include "PlayerHandInfo.h"
#include <map>

using namespace std;

class HandInfo
{
private:
	map<string, PlayerHandInfo *> playerInfoMap_;
	Hand hand_;
	
public:
	HandInfo(const Hand &h);
	void Add(string playerName, PlayerHandInfo * playerHandInfo) { playerInfoMap_[playerName] = playerHandInfo; };
	Hand MyHand() { return hand_; };
	void MyHand(const Hand &h) { hand_ = h; };
	map<string, PlayerHandInfo *> PlayerInfoMap() { return playerInfoMap_; };

	PlayerHandInfo &PlayerInfo(string playerName) { return *(this->playerInfoMap_[playerName]); };
	PlayerHandInfo PlayerInfoBySeat(int seatNum);
};


#endif

